package com.efast.cafe.portal.dao.doc;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.bean.doc.DocGroupQueryBean;
import com.efast.cafe.portal.entity.doc.DocGroup;

public interface DocGroupDao {

	/**
	 * 查询文档工作组
	 * @param queryBean
	 * @return
	 */
	public List<DocGroup> queryGroupList(DocGroupQueryBean queryBean);
	
	public int queryGroupCount(DocGroupQueryBean queryBean);
	
	
	public Integer queryNameRepeat(@Param(value="id")Integer id,@Param(value="groupName")String groupName,@Param(value="companyCode")String companyCode);
	/**
	 * 创建工作组
	 * @param group
	 */
	public void addGroup(DocGroup group);
	
	/**
	 * 修改工作组
	 * @param group
	 */
	public void updateGroup(DocGroup group);
	
	public Integer queryFilepCountByGroup(@Param("id") Integer id);
	
	public Integer queryFilepCountByFile(@Param("id") Integer id);
	
   public  Integer deleteGroup(@Param("id") Integer id);
	
	public Integer deleteFold(@Param("id") Integer id);
	
	
}
